import request from '@/utils/system/request'

export function getData(softwareId: String) {
	return request({
		url: `/article/softwareDownload/list/${softwareId}`,
		method: 'get',
	})
}

export function addDownload(data: any, versionId: String) {
	return request({
		url: `/article/softwareDownload/${versionId}`,
		method: 'post',
		data
	})
}

export function update(data: any) {
	return request({
		url: '/article/softwareDownload/update',
		method: 'put',
		data
	})
}

export function del(id: any) {
	return request({
		url: '/article/softwareDownload/' + id,
		method: 'delete',
	})
}

export function softwareTypeList() {
	return request({
		url: '/article/softwareDownload/softwareType',
		method: 'get',
	})
}